package com.six.flowerShopper.config

import com.alibaba.nacos.api.annotation.NacosProperties
import com.six.library.utils.RestTemplateUtils
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.client.RestTemplate
import javax.annotation.Resource


/*-*- coding:utf-8 -*-
 * @Author  : debi
 * @Time    : 10/25/22
 * @Software: IntelliJ IDEA
 */

@Configuration
class CreateBean {
    @Resource
    private lateinit var restTemplate: RestTemplate

    @Bean
    fun restTemplateUtils(): RestTemplateUtils {
        return RestTemplateUtils(restTemplate = restTemplate)
    }
}
